﻿using UnityEngine;
using System.Collections;

public class Gun:MonoBehaviour {

    [SerializeField]
    private GameObject bullet;

    // Use this for initialization
    void Start() {

    }


    private void FixedUpdate() {

        if (Input.GetKeyDown(KeyCode.K)) {
            Instantiate(bullet
                ,transform.position
                ,Quaternion.identity);
        }
    }

}
